package com.dbManage.dao;


import com.dbManage.annotation.MyBatisRepository;
import org.springframework.stereotype.Repository;
import com.dbManage.entity.*;

import java.util.List;

@Repository
@MyBatisRepository
public interface NoteDao {
    Note findNoteByUrl(String url);

    List<Note> findAllNote();

    void insertNote(Note note);

    void deleteNoteById(int id);

    void updateNote(Note note);

    Note findNoteById(int id);

    List<Note> queryNote(Note note);

    List<Note> search(Note note);

    void updateNoteAuth(Note note);

    List<Note> searchNewNote();

    void updateNoteCount(Note note);
}
